package org.NooLab.glue.components;

import java.io.Serializable;

import org.NooLab.glue.MessageBoard;

public class Message implements Serializable{
	 
	transient private static final long serialVersionUID = 3160094283279298630L;

	
	transient MessageBoard msgboard;
	
	MessageBoardFactoryProperties mbfp;
	
	int index = -1;
	public String rawXmlMsg = "";
	String msgGUID;
	
	int state = -1;
	
	/** used only for outgoing messages */
	int port = 0; 
	// will be set for each message (actually, more precise, 
	// for each external participant [source, receptor])
	
	
	
	public Message(  ){
	}

	public void setMessageboard(MessageBoard mb ){
		msgboard = mb ;
	}
	
	public void setGUID( String GUIDstr ){
		msgGUID = GUIDstr;
	}

	public String getGUID(){
		return msgGUID ;
		
	}
	
	public void setMsg( String xmlbulk , int ix){
		rawXmlMsg = xmlbulk ;
		index = ix ;
		state = 1 ;
	}
	
	
} // Message

